//
//  SEGReportReasonModel.m
//  SEGUhomeSommunitySocial
//
//  Created by 揭婧雯 on 2018/4/27.
//  Copyright © 2018年 刘山. All rights reserved.
//

#import "SEGReportReasonModel.h"

@implementation SEGReportReasonModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _name = @"";
        _value = @"";
        _code = @"";
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setName:(NSString*)name{
    _name = [[SEGUtils ValueToString:name]copy];
}
- (void)setValue:(NSString*)value{
    _value = [[SEGUtils ValueToString:value]copy];
}
- (void)setCode:(NSString*)code{
    _code = [[SEGUtils ValueToString:code]copy];
}
@end
